Optimal. Leaf size=512 \[ -\frac {\sqrt {d+e x^2}}{5 a x^5}+\frac {4 e \sqrt {d+e x^2}}{15 a d x^3}+\frac {(b d-a e) \sqrt {d+e x^2}}{3 a^2 d x^3}-\frac {8 e^2 \sqrt {d+e x^2}}{15 a d^2 x}-\frac {2 e (b d-a e) \sqrt {d+e x^2}}{3 a^2 d^2 x}-\frac {\left (b^2 d-a c d-a b e\right ) \sqrt {d+e x^2}}{a^3 d x}-\frac {c \left (b^2 d-a c d-a b e+\frac {b^3 d-3 a b c d-a b^2 e+2 a^2 c e}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} x}{\sqrt {b-\sqrt {b^2-4 a c}} \sqrt {d+e x^2}}\right )}{a^3 \sqrt {b-\sqrt {b^2-4 a c}} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}-\frac {c \left (b^2 d-a c d-a b e-\frac {b^3 d-3 a b c d-a b^2 e+2 a^2 c e}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} x}{\sqrt {b+\sqrt {b^2-4 a c}} \sqrt {d+e x^2}}\right )}{a^3 \sqrt {b+\sqrt {b^2-4 a c}} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 3.50, antiderivative size = 512, normalized size of antiderivative = 1.00, number of steps
used = 15, number of rules used = 7, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.241, Rules used = {1309, 277,
270, 6860, 1706, 385, 211} \begin {gather*} -\frac {\sqrt {d+e x^2} \left (-a b e-a c d+b^2 d\right )}{a^3 d x}-\frac {2 e \sqrt {d+e x^2} (b d-a e)}{3 a^2 d^2 x}+\frac {\sqrt {d+e x^2} (b d-a e)}{3 a^2 d x^3}-\frac {c \left (\frac {2 a^2 c e-a b^2 e-3 a b c d+b^3 d}{\sqrt {b^2-4 a c}}-a b e-a c d+b^2 d\right ) \text {ArcTan}\left (\frac {x \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}}{\sqrt {b-\sqrt {b^2-4 a c}} \sqrt {d+e x^2}}\right )}{a^3 \sqrt {b-\sqrt {b^2-4 a c}} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}}-\frac {c \left (-\frac {2 a^2 c e-a b^2 e-3 a b c d+b^3 d}{\sqrt {b^2-4 a c}}-a b e-a c d+b^2 d\right ) \text {ArcTan}\left (\frac {x \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}{\sqrt {\sqrt {b^2-4 a c}+b} \sqrt {d+e x^2}}\right )}{a^3 \sqrt {\sqrt {b^2-4 a c}+b} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}-\frac {8 e^2 \sqrt {d+e x^2}}{15 a d^2 x}-\frac {\sqrt {d+e x^2}}{5 a x^5}+\frac {4 e \sqrt {d+e x^2}}{15 a d x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 270
Rule 277
Rule 385
Rule 1309
Rule 1706
Rule 6860
Rubi steps
\begin {align*} \int \frac {\sqrt {d+e x^2}}{x^6 \left (a+b x^2+c x^4\right )} \, dx &=-\frac {\int \frac {b d-a e+c d x^2}{x^4 \sqrt {d+e x^2} \left (a+b x^2+c x^4\right )} \, dx}{a}+\frac {d \int \frac {1}{x^6 \sqrt {d+e x^2}} \, dx}{a}\\ &=-\frac {\sqrt {d+e x^2}}{5 a x^5}-\frac {\int \left (\frac {b d-a e}{a x^4 \sqrt {d+e x^2}}+\frac {-b^2 d+a c d+a b e}{a^2 x^2 \sqrt {d+e x^2}}+\frac {b^3 d-2 a b c d-a b^2 e+a^2 c e+c \left (b^2 d-a c d-a b e\right ) x^2}{a^2 \sqrt {d+e x^2} \left (a+b x^2+c x^4\right )}\right ) \, dx}{a}-\frac {(4 e) \int \frac {1}{x^4 \sqrt {d+e x^2}} \, dx}{5 a}\\ &=-\frac {\sqrt {d+e x^2}}{5 a x^5}+\frac {4 e \sqrt {d+e x^2}}{15 a d x^3}-\frac {\int \frac {b^3 d-2 a b c d-a b^2 e+a^2 c e+c \left (b^2 d-a c d-a b e\right ) x^2}{\sqrt {d+e x^2} \left (a+b x^2+c x^4\right )} \, dx}{a^3}+\frac {\left (8 e^2\right ) \int \frac {1}{x^2 \sqrt {d+e x^2}} \, dx}{15 a d}-\frac {(b d-a e) \int \frac {1}{x^4 \sqrt {d+e x^2}} \, dx}{a^2}+\frac {\left (b^2 d-a c d-a b e\right ) \int \frac {1}{x^2 \sqrt {d+e x^2}} \, dx}{a^3}\\ &=-\frac {\sqrt {d+e x^2}}{5 a x^5}+\frac {4 e \sqrt {d+e x^2}}{15 a d x^3}+\frac {(b d-a e) \sqrt {d+e x^2}}{3 a^2 d x^3}-\frac {8 e^2 \sqrt {d+e x^2}}{15 a d^2 x}-\frac {\left (b^2 d-a c d-a b e\right ) \sqrt {d+e x^2}}{a^3 d x}-\frac {\int \left (\frac {c \left (b^2 d-a c d-a b e\right )+\frac {c \left (b^3 d-3 a b c d-a b^2 e+2 a^2 c e\right )}{\sqrt {b^2-4 a c}}}{\left (b-\sqrt {b^2-4 a c}+2 c x^2\right ) \sqrt {d+e x^2}}+\frac {c \left (b^2 d-a c d-a b e\right )-\frac {c \left (b^3 d-3 a b c d-a b^2 e+2 a^2 c e\right )}{\sqrt {b^2-4 a c}}}{\left (b+\sqrt {b^2-4 a c}+2 c x^2\right ) \sqrt {d+e x^2}}\right ) \, dx}{a^3}+\frac {(2 e (b d-a e)) \int \frac {1}{x^2 \sqrt {d+e x^2}} \, dx}{3 a^2 d}\\ &=-\frac {\sqrt {d+e x^2}}{5 a x^5}+\frac {4 e \sqrt {d+e x^2}}{15 a d x^3}+\frac {(b d-a e) \sqrt {d+e x^2}}{3 a^2 d x^3}-\frac {8 e^2 \sqrt {d+e x^2}}{15 a d^2 x}-\frac {2 e (b d-a e) \sqrt {d+e x^2}}{3 a^2 d^2 x}-\frac {\left (b^2 d-a c d-a b e\right ) \sqrt {d+e x^2}}{a^3 d x}-\frac {\left (c \left (b^2 d-a c d-a b e-\frac {b^3 d-3 a b c d-a b^2 e+2 a^2 c e}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {1}{\left (b+\sqrt {b^2-4 a c}+2 c x^2\right ) \sqrt {d+e x^2}} \, dx}{a^3}-\frac {\left (c \left (b^2 d-a c d-a b e+\frac {b^3 d-3 a b c d-a b^2 e+2 a^2 c e}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {1}{\left (b-\sqrt {b^2-4 a c}+2 c x^2\right ) \sqrt {d+e x^2}} \, dx}{a^3}\\ &=-\frac {\sqrt {d+e x^2}}{5 a x^5}+\frac {4 e \sqrt {d+e x^2}}{15 a d x^3}+\frac {(b d-a e) \sqrt {d+e x^2}}{3 a^2 d x^3}-\frac {8 e^2 \sqrt {d+e x^2}}{15 a d^2 x}-\frac {2 e (b d-a e) \sqrt {d+e x^2}}{3 a^2 d^2 x}-\frac {\left (b^2 d-a c d-a b e\right ) \sqrt {d+e x^2}}{a^3 d x}-\frac {\left (c \left (b^2 d-a c d-a b e-\frac {b^3 d-3 a b c d-a b^2 e+2 a^2 c e}{\sqrt {b^2-4 a c}}\right )\right ) \text {Subst}\left (\int \frac {1}{b+\sqrt {b^2-4 a c}-\left (-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e\right ) x^2} \, dx,x,\frac {x}{\sqrt {d+e x^2}}\right )}{a^3}-\frac {\left (c \left (b^2 d-a c d-a b e+\frac {b^3 d-3 a b c d-a b^2 e+2 a^2 c e}{\sqrt {b^2-4 a c}}\right )\right ) \text {Subst}\left (\int \frac {1}{b-\sqrt {b^2-4 a c}-\left (-2 c d+\left (b-\sqrt {b^2-4 a c}\right ) e\right ) x^2} \, dx,x,\frac {x}{\sqrt {d+e x^2}}\right )}{a^3}\\ &=-\frac {\sqrt {d+e x^2}}{5 a x^5}+\frac {4 e \sqrt {d+e x^2}}{15 a d x^3}+\frac {(b d-a e) \sqrt {d+e x^2}}{3 a^2 d x^3}-\frac {8 e^2 \sqrt {d+e x^2}}{15 a d^2 x}-\frac {2 e (b d-a e) \sqrt {d+e x^2}}{3 a^2 d^2 x}-\frac {\left (b^2 d-a c d-a b e\right ) \sqrt {d+e x^2}}{a^3 d x}-\frac {c \left (b^2 d-a c d-a b e+\frac {b^3 d-3 a b c d-a b^2 e+2 a^2 c e}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e} x}{\sqrt {b-\sqrt {b^2-4 a c}} \sqrt {d+e x^2}}\right )}{a^3 \sqrt {b-\sqrt {b^2-4 a c}} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}-\frac {c \left (b^2 d-a c d-a b e-\frac {b^3 d-3 a b c d-a b^2 e+2 a^2 c e}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e} x}{\sqrt {b+\sqrt {b^2-4 a c}} \sqrt {d+e x^2}}\right )}{a^3 \sqrt {b+\sqrt {b^2-4 a c}} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(10933\) vs. \(2(512)=1024\).
time = 16.41, size = 10933, normalized size = 21.35 \begin {gather*} \text {Result too large to show} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.16, size = 417, normalized size = 0.81
method | result | size |
risch | \(-\frac {\sqrt {e \,x^{2}+d}\, \left (-2 a^{2} e^{2} x^{4}-5 a b d e \,x^{4}-15 a c \,d^{2} x^{4}+15 b^{2} d^{2} x^{4}+a^{2} d e \,x^{2}-5 a b \,d^{2} x^{2}+3 a^{2} d^{2}\right )}{15 d^{2} a^{3} x^{5}}-\frac {\sqrt {e}\, \left (\munderset {\textit {\_R} =\RootOf \left (c \,\textit {\_Z}^{4}+\left (4 e b -4 c d \right ) \textit {\_Z}^{3}+\left (16 a \,e^{2}-8 d e b +6 c \,d^{2}\right ) \textit {\_Z}^{2}+\left (4 d^{2} e b -4 c \,d^{3}\right ) \textit {\_Z} +d^{4} c \right )}{\sum }\frac {\left (c \left (a b e +a c d -b^{2} d \right ) \textit {\_R}^{2}+2 \left (-2 a^{2} c \,e^{2}+2 a \,b^{2} e^{2}+3 a b c d e -a \,c^{2} d^{2}-2 b^{3} d e +b^{2} c \,d^{2}\right ) \textit {\_R} +a b c \,d^{2} e +a \,c^{2} d^{3}-b^{2} c \,d^{3}\right ) \ln \left (\left (\sqrt {e \,x^{2}+d}-\sqrt {e}\, x \right )^{2}-\textit {\_R} \right )}{c \,\textit {\_R}^{3}+3 \textit {\_R}^{2} b e -3 \textit {\_R}^{2} c d +8 \textit {\_R} a \,e^{2}-4 \textit {\_R} b d e +3 c \,d^{2} \textit {\_R} +d^{2} e b -c \,d^{3}}\right )}{2 a^{3}}\) | \(342\) |
default | \(-\frac {\sqrt {e}\, \left (\left (a c -b^{2}\right ) \ln \left (\sqrt {e \,x^{2}+d}-\sqrt {e}\, x \right )-\frac {\left (\munderset {\textit {\_R} =\RootOf \left (c \,\textit {\_Z}^{4}+\left (4 e b -4 c d \right ) \textit {\_Z}^{3}+\left (16 a \,e^{2}-8 d e b +6 c \,d^{2}\right ) \textit {\_Z}^{2}+\left (4 d^{2} e b -4 c \,d^{3}\right ) \textit {\_Z} +d^{4} c \right )}{\sum }\frac {\left (c \left (-a b e -a c d +b^{2} d \right ) \textit {\_R}^{2}+2 \left (2 a^{2} c \,e^{2}-2 a \,b^{2} e^{2}-3 a b c d e +a \,c^{2} d^{2}+2 b^{3} d e -b^{2} c \,d^{2}\right ) \textit {\_R} -a b c \,d^{2} e -a \,c^{2} d^{3}+b^{2} c \,d^{3}\right ) \ln \left (\left (\sqrt {e \,x^{2}+d}-\sqrt {e}\, x \right )^{2}-\textit {\_R} \right )}{c \,\textit {\_R}^{3}+3 \textit {\_R}^{2} b e -3 \textit {\_R}^{2} c d +8 \textit {\_R} a \,e^{2}-4 \textit {\_R} b d e +3 c \,d^{2} \textit {\_R} +d^{2} e b -c \,d^{3}}\right )}{2}\right )}{a^{3}}+\frac {-\frac {\left (e \,x^{2}+d \right )^{\frac {3}{2}}}{5 d \,x^{5}}+\frac {2 e \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{15 d^{2} x^{3}}}{a}+\frac {\left (-a c +b^{2}\right ) \left (-\frac {\left (e \,x^{2}+d \right )^{\frac {3}{2}}}{d x}+\frac {2 e \left (\frac {x \sqrt {e \,x^{2}+d}}{2}+\frac {d \ln \left (\sqrt {e}\, x +\sqrt {e \,x^{2}+d}\right )}{2 \sqrt {e}}\right )}{d}\right )}{a^{3}}+\frac {b \left (e \,x^{2}+d \right )^{\frac {3}{2}}}{3 a^{2} d \,x^{3}}\) | \(417\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 5811 vs.
\(2 (472) = 944\).
time = 15.80, size = 5811, normalized size = 11.35 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {d + e x^{2}}}{x^{6} \left (a + b x^{2} + c x^{4}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {e\,x^2+d}}{x^6\,\left (c\,x^4+b\,x^2+a\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________